<template>
  <div>
    <el-row>
      <el-col :span="24">
        <el-tooltip v-for="(item,index) in operationBtnArray" :key="index"
                    v-if="item.show"
                    class="item" effect="dark"  :content="item.text" placement="top-start">
          <el-button :type="item.type"
                     size="small"
                     :icon="item.icon" @click="handleTopBtn(item.methodName)" >
          </el-button>
        </el-tooltip>
      </el-col>
    </el-row>
  </div>
</template>
<script>
  export default {
    props:{
      operationBtnArray:{
        type: Array,
      }
    },
    data() {
      return {

      }
    },
    created(){


    },
    methods:{
      handleTopBtn(methodName) {
        this.$emit('handleSearchTopBtn', methodName);
      },
    }
  };
</script>
<style lang="less" scoped>


</style>
